package com.slz3.business.module.wmsManagement.wmsTraysManage.steward;

import com.slz3.business.frame.response.RR;
import com.slz3.business.frame.response.ResInfo;
import com.slz3.business.module.wmsManagement.wmsTraysManage.domain.WmsTraysManage;
import com.slz3.business.module.wmsManagement.wmsTraysManage.domain.WmsTraysManageCondition;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;

import java.util.ArrayList;
import java.util.List;

public class WmsTraysManageResAtomic extends WmsTraysManageResExecutor {

    public Mono<ServerResponse> add_$WmsTraysManageUpdateLock(ServerRequest req, WmsTraysManage wmsTraysManage) {
        return WmsTraysManageResSafeValid.add(req, wmsTraysManage) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.add(req, wmsTraysManage);
    }


    public Mono<ServerResponse> delete_$WmsTraysManageUpdateLock(ServerRequest req, WmsTraysManageCondition wmsTraysManageCondition) {
        return WmsTraysManageResSafeValid.delete(req, wmsTraysManageCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.delete(req);
    }

    public Mono<ServerResponse> modify_$WmsTraysManageUpdateLock(ServerRequest req, WmsTraysManage wmsTraysManage) {
        return WmsTraysManageResSafeValid.modify(req, wmsTraysManage) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.modify(req, wmsTraysManage);
    }

    public Mono<ServerResponse> info_$WmsTraysManageUpdateLock(ServerRequest req) {
        return WmsTraysManageResSafeValid.info(req) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.info(req);
    }

    public Mono<ServerResponse> auditSubmit_$WmsTraysManageUpdateLock(ServerRequest req, WmsTraysManageCondition wmsTraysManageCondition) {
        return WmsTraysManageResSafeValid.auditSubmit(req, wmsTraysManageCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.auditSubmit(req);
    }

    public Mono<ServerResponse> audit_$WmsTraysManageUpdateLock(ServerRequest req, WmsTraysManageCondition wmsTraysManageCondition) {
        return WmsTraysManageResSafeValid.audit(req, wmsTraysManageCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.audit(req);
    }

    public Mono<ServerResponse> auditReject_$WmsTraysManageUpdateLock(ServerRequest req, WmsTraysManageCondition wmsTraysManageCondition) {
        return WmsTraysManageResSafeValid.auditReject(req, wmsTraysManageCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.auditReject(req);
    }


    public Mono<ServerResponse> usingEnable_$WmsTraysManageUpdateLock(ServerRequest req, WmsTraysManageCondition wmsTraysManageCondition) {
        return WmsTraysManageResSafeValid.usingEnable(req, wmsTraysManageCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.usingEnable(req);
    }

    public Mono<ServerResponse> usingDisable_$WmsTraysManageUpdateLock(ServerRequest req, WmsTraysManageCondition wmsTraysManageCondition) {
        return WmsTraysManageResSafeValid.usingDisable(req, wmsTraysManageCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.usingDisable(req);
    }
}
